package com.roy.HadoopRPCDemo.protocol;

import org.apache.hadoop.io.MapWritable;

import com.roy.HadoopRPCDemo.bean.RPCResBean;
import com.roy.HadoopRPCDemo.bean.UserBean;
import com.roy.HadoopRPCDemo.util.PropUtil;
import com.roy.HadoopRPCDemo.util.TextArrayWritable;
import com.roy.HadoopRPCDemo.util.UserBeanArrayWritable;

public interface MyService {

	public static final long versionID=Long.parseLong(PropUtil.getProp("RPCServer.version"));
		
	public String baseTypeService(int userId,String userName,String userPassword);
	
	public UserBean mapTypeService(MapWritable userinfo);
	
	public UserBean objTypeService(UserBean user);
	
	public UserBeanArrayWritable objArrayService(UserBeanArrayWritable user);
	
	public RPCResBean frameworkService(String exeId,TextArrayWritable params);
	
}
